from selenium import webdriver
from selenium.webdriver.chrome.service import Service

# # 创建 Service 对象并设置日志级别
service = Service(
    executable_path="C:\\Users\\电脑\\.cache\\selenium\\chromedriver\\win64\\130.0.6723.91\\chromedriver.exe",
    # log_path="F:\\projects\\python\\pythonProject\\chromedriver.log",
    log_output="F:\\projects\\python\\pythonProject\\chromedriver.log")
service.creationflags = "--verbose"  # 设置详细的日志级别
service.start()
driver = webdriver.Chrome(service=service)

driver.get("http://selenium.dev")
input("按 Enter 键关闭浏览器...")
driver.quit()
